package com.heima.admin.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.heima.model.admin.dtos.SensitiveDto;
import com.heima.model.admin.pojos.AdSensitive;
import com.heima.model.common.dtos.ResponseResult;

/**
 * @Description:
 * @Version: V1.0
 */
public interface AdSensitiveService extends IService<AdSensitive> {


    /**
     * 分页条件查询
     * @param dto
     * @return
     */
    public ResponseResult findByNameAndPage(SensitiveDto dto);


    /**
     * 新增
     * @param adSensitive
     * @return
     */
    public ResponseResult insert(AdSensitive adSensitive);

    /**
     * 修改
     * @param adSensitive
     * @return
     */
    public ResponseResult update(AdSensitive adSensitive);


    /**
     * 根据ID删除
     * @param id
     * @return
     */
    public ResponseResult delete(Integer id);

}
